﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TranslatorModule.ascx.cs" Inherits="blackhouse.Translator.Web.TranslatorModule" %>
<div id="scrollAlwaysTop">
    <header id="recordEditHead">
        <div>
            <div class="fLeft translator-with-select" id="translatorResource">
                <label>Edytowany zasób:</label>
                <asp:DropDownList runat="server" ID="ddlResources" DataTextField="Name" DataValueField="Key" />
            </div>
            <div class="fLeft bord-left translator-with-select" id="translatorFromLanguage">
                <label>Język referencyjny:</label>
                <asp:DropDownList runat="server" ID="ddlFromLanguage" DataTextField="DisplayName" DataValueField="Name" />
            </div>
            <div class="fLeft bord-left translator-with-select" id="translatorToLanguage">
                <label>Tłumaczony język:</label>
                <asp:DropDownList runat="server" ID="ddlToLanguage" DataTextField="DisplayName" DataValueField="Name" />
            </div>
            <div class="bord-left fLeft buttonHolder button-action-unchanged" id="settingsChange">
                <asp:LinkButton runat="server" ToolTip="Zmień ustawienia" CssClass="styleButton"
                    ID="lnkChangeParameters">Zmień</asp:LinkButton>
            </div>
            <div class="bord-left fRight buttonHolder">
                <asp:LinkButton runat="server" ToolTip="Zapisz wprowadzone zmiany" CssClass="styleButton"
                    ID="lnkSave">Zapisz</asp:LinkButton>
            </div>
        </div>
        <div class="cleaner"></div>
    </header>
</div>
<div id="normalScroll">
    <asp:Repeater runat="server" ID="rptResourceItems" OnItemDataBound="rptResourceItems_ItemDataBound">
        <HeaderTemplate>
            <div id="translatorContentTable">
        </HeaderTemplate>
        <ItemTemplate>
            <div class="translator-row">
                <div class="translator-cell translator-cell-key">
                    <%#Container.DataItem %>
                    <asp:Label runat="server" ID="lblComment" CssClass="resource-key-comment" />
                </div>
                <div class="translator-cell translator-cell-reftext">
                    <asp:Literal runat="server" ID="ltlReferenceText" />
                </div>
                <div class="translator-cell translator-cell-transtext">
                    <textarea name="<%#Container.DataItem %>-text"><asp:Literal runat="server" ID="ltlTranslatedText" /></textarea>
                    <input type="hidden" name="<%#Container.DataItem %>-changed" value="1" />
                </div> 
            </div>
        </ItemTemplate>
        <FooterTemplate></div></FooterTemplate>
    </asp:Repeater>


</div>
